class Respondent {
    /**
     * 被申请人id
     */
    respondentId: number | null = null;

    /**
     * 姓名
     */
    name: string | null = null;

    /**
     * 身份证号
     */
    idNum: string | null = null;

    /**
     * 民族
     */
    nation: string | null = null;

    /**
     * 收入
     */
    income: number | null = null;

    /**
     * 学历
     */
    education: string | null = null;

    /**
     * 家庭地址
     */
    address: string | null = null;

    /**
     * 手机号
     */
    phoneNum: string | null = null;

    /**
     * 职业
     */
    career: string | null = null;

    /**
     * 车辆资产
     */
    cars: string | null = null;

    /**
     * 房产
     */
    houseProperty: string | null = null;

    /**
     * 创建时间
     */
    createdTime: string | null = null;
    static getSex(id:string){
        if(id==null) return "未知"
        return Number.parseInt(id.substring(16,17))%2==1?"男":"女";
     
    }
    constructor(respondentId?: number, name?: string, idNum?: string, nation?: string,
                income?: number, education?: string, address?: string, phoneNum?: string,
                career?: string, cars?: string, houseProperty?: string, createdTime?: string) {
        this.respondentId = respondentId ?? null;
        this.name = name ?? null;
        this.idNum = idNum ?? null;
        this.nation = nation ?? null;
        this.income = income ?? null;
        this.education = education ?? null;
        this.address = address ?? null;
        this.phoneNum = phoneNum ?? null;
        this.career = career ?? null;
        this.cars = cars ?? null;
        this.houseProperty = houseProperty ?? null;
        this.createdTime = createdTime ?? null;
    }
}

export default Respondent;
/**
 * 被申请人
 */